standard colors
An internal standardColor[] array contains a 5-intensity per color array of equally spaced
colors created as follows:
DIM color[255]
DIM intensity[4]
intensity[0] = 0x0000 ' OFF
intensity[1] = 0x4000 ' 1/4 intensity
intensity[2] = 0x8000 ' 1/2 intensity
intensity[3] = 0xC000 ' 3/4 intensity
intensity[4] = 0xFFFF ' full intensity
colorNumber = 0
FOR r = 0 TO 4
red = intensity[r]
FOR g = 0 TO 4
green = intensity[g]
FOR b = 0 TO 4
blue = intensity[b]
color[colorNumber].r = red
color[colorNumber].g = green
color[colorNumber].b = blue
color[colorNumber].x = colorNumber
INC colorNumber
NEXT
NEXT
NEXT
'
' color = 25 * red + 5 * green + blue
'
' red,green,blue are intensities 0 to 4
'
Human beings do not perceive color intensities linearly. It is much harder to distinguish similar colors from each other when they are dark or bright, as opposed to intermediate. Some computers and system software compensate by adjusting colors so equally spaced intensities appear equally spaced. If they don't, GraphicsDesigner performs color compensation, but only if it knows this kind of compensation hasn't already been performed, and the correction can be made without replacing solid colors with colors simulated by dithering. Color compensation has no effect on program values.